import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';

// 模块
import { AppRoutingModule } from './app-routing.module';
import { AdminModule } from './admin/admin.module';

// 组件
import { AppComponent } from './app.component';

// 服务
import { LocalStorageService, SessionStorageService } from './store';
import { HttpService } from './http/http.service';
import { AuthService,AuthGuardService } from './auth';
import { LoadingAnimateService } from './common/loading';

import { LoginModule } from './login/login.module';
@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        AdminModule,
        AppRoutingModule,
        LoginModule,
    ],
    declarations: [AppComponent],
    providers: [
        LocalStorageService,
        SessionStorageService,
        HttpService,
        LoadingAnimateService,
        AuthService,
        AuthGuardService
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
